<link href="${plugin}/editor/baidu/umeditor/themes/default/css/umeditor.min.css" type="text/css" rel="stylesheet">
<script  type="text/javascript" src="${plugin}/My97DatePickerBeta/My97DatePicker/WdatePicker.js"></script>
<script  type="text/javascript" src="${plugin}/editor/baidu/umeditor/umeditor.config.js"></script>
<script  type="text/javascript" src="${plugin}/editor/baidu/umeditor/umeditor.min.js"></script>
<script type="text/javascript" charset="utf-8" src="${plugin}/editor/baidu/umeditor/lang/zh-cn/zh-cn.js"></script>
<script  type="text/javascript" src="${acePath}/assets/js/bootstrap-tag.min.js"></script>
<script type="text/javascript">
var settings = {
  modelDomainFlag:"sys"
 ,modelFlag:"email"
 ,formId:"editForm"
}
//window.UEDITOR_HOME_URL = window.global.plugin+"/editor/baidu/ueditor/";
//window.UEDITOR_CONFIG.serverUrl = window.global.ctx+"/common/rootpath";
window.UMEDITOR_HOME_URL = window.global.plugin+"/editor/baidu/umeditor/";
</script> 
<script type="text/javascript">
<!--
$script(indexJs, 'indexJs',function(){
	$script(window.global.ctx+'/static/js/sys/email/edit.js','email', function() {
	},1);
});
//-->
</script>
<a ><span id="newPage"></span></a>
<div class="breadcrumbs" id="breadcrumbs">
	<script type="text/javascript">
		try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
	</script>
	<ul class="breadcrumb">
		<li>
			<a href="${ctx}/sys/email/index?${session._para}" title="邮件管理">邮件管理</a>
		</li>
		<li>
			 邮件编辑
		</li>
	</ul><!-- /.breadcrumb -->
</div>
<!-- 搜索框 开始 -->
<div class="page-header">
         <div class="row fw-margin-top toolbar" >
  			<div class="col-xs-12 btn-toolbar">
  				<button type="button" class="btn btn-danger btn-xs returnBtn" url="${ctx}/sys/email/index?${session._para}" title="返回" >
  					<i class="ace-icon fa fa-reply icon-only"></i>返回
  				</button> 
  				<button type="button" class="btn btn-primary btn-xs saveBtn" title="保存">
  					<i class="ace-icon fa  bigger-120"></i>保存
  				</button> 
  			</div>
  		</div>
  		<div class="row fw-margin" style="margin-top: 10px">
  			<div class="col-xs-12" >
			  <form id="editForm" class="form-horizontal" role="form">
	  			<input type="hidden" id="id" name="id" value="${id}">
	  			<div class="form-group">
					<label class="col-sm-1 control-label no-padding-right required" for="form-field-1">邮件类别</label>
					<div class="col-sm-5" >
						<select id="categoryCodeId" name="categoryCode" class="validate[required,maxSize[50]] chosen-select form-control" data-placeholder="类别">
						<% for(res in ft){ %>
						   <% if(res.code==data.categoryCode){ %>
						  <option value="${res.code}" selected="selected">${res.message}</option>
						  　   <% }else{ %>
						   <option value="${res.code}">${res.message}</option>
						  　<% } %>
					　　   <% } %>
						</select>
					</div>
				</div>
	  			<div class="form-group">
					<label class="col-sm-1 control-label no-padding-right required" for="form-field-1">系统邮箱</label>
					<div class="col-sm-5" >
						<select id="emailboxId" name="emailboxId" class="validate[required,maxSize[50]] chosen-select form-control" data-placeholder="选择系统邮箱">
						<% for(res in boxs){ %>
						   <% if(res.id==data.emailboxId){ %>
						  <option value="${res.id}" selected="selected">${res.name}</option>
						  　   <% }else{ %>
						   <option value="${res.id}">${res.name}</option>
						  　<% } %>
					　　   <% } %>
						</select>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-1 control-label no-padding-right required" for="form-field-1">主题</label>
					<div class="col-sm-11">
						<input type="text" name="subject" value="${data.subject}" placeholder="主题" class="validate[required,maxSize[500]] col-xs-10 col-sm-5" />
					</div>
				</div> 
	  			<div class="form-group">
					<label class="col-sm-1 control-label no-padding-right" for="form-field-1">内容</label>
					<textarea class="hide" rows="1" cols="1" id="contentHide"   name="content" >${data.content}</textarea>
					<div class="col-sm-11">
		  			   <script type="text/plain" escape="false" id="editor" class="" style="width:100%;height:240px;">
	           			
						</script>
					</div>
				</div>

	           </form>
  			</div>
  		</div>
  		 
</div>
